package com.he.DesignPatterns.visit;

/**
 * @description: 具体访问者角色类
 * @Author: HCL
 * @Date: 2024/10/11 16:42
 */
public class Owner implements Person{

    @Override
    public void feed(Cat cat) {
        System.out.println("主人喂猫");
    }

    @Override
    public void feed(Dog dog) {
        System.out.println("主人喂狗");
    }
}
